package com.hsy.directseeding.account;


import com.deparse.dpframe.ui.activity.DPSplashActivity;
import com.hsy.directseeding.R;
import com.hsy.directseeding.main.TextMainActivity;
import com.hsy.directseeding.utils.CommonUtils;

/**
 * Created by Administrator on 2016/9/9.
 */
public class SplashActivity extends DPSplashActivity {
    @Override
    protected int getSplashContentView() {
        return R.layout.activity_lanuch;
    }

    @Override
    protected void doInit() {

    }

    @Override
    protected long getDuration() {
        return 2000;
    }

    @Override
    protected void doJump() {
        if (CommonUtils.checkLogin(this)) {
            startActivity(TextMainActivity.class);
        } else {
            startActivity(LoginActivity.class);
        }

    }

}
